package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CCourtannouncementDao;
import gov.ccswj.modules.ccbusiness.entity.CCourtannouncementEntity;
import gov.ccswj.modules.ccbusiness.service.CCourtannouncementService;



@Service("cCourtannouncementService")
public class CCourtannouncementServiceImpl implements CCourtannouncementService {
	@Autowired
	private CCourtannouncementDao cCourtannouncementDao;
	
	@Override
	public CCourtannouncementEntity queryObject(Integer id){
		return cCourtannouncementDao.queryObject(id);
	}
	
	@Override
	public List<CCourtannouncementEntity> queryList(Map<String, Object> map){
		return cCourtannouncementDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cCourtannouncementDao.queryTotal(map);
	}
	
	@Override
	public void save(CCourtannouncementEntity cCourtannouncement){
		cCourtannouncementDao.save(cCourtannouncement);
	}
	
	@Override
	public void update(CCourtannouncementEntity cCourtannouncement){
		cCourtannouncementDao.update(cCourtannouncement);
	}
	
	@Override
	public void delete(Integer id){
		cCourtannouncementDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cCourtannouncementDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cCourtannouncementDao.delete(entname);
		
	}
}
